import Vue from 'vue'
import Router from 'vue-router'
import ljx from './routes/ljx';
import gjj from './routes/gjj';
import dhz from './routes/dhz';
import xyl from './routes/xyl';
import zj from './routes/zj';
import xzf from './routes/xzf';
import publicPart from'@/views/public/publicPart'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '',
      redirect:'/all',
    },
    {
      path:'/all',
      name:publicPart,
      // redirect:'/all',
      component: publicPart,
      children :[
        ...ljx,
        ...dhz,
        ...gjj,
        ...xyl,
        ...xzf,
        ...zj,
      ]
    },

  ],
  mode:'history',
  base: process.env.BASE_URL,
})
